package com.zzxy.spring5.service;

import com.zzxy.spring5.dao.TeacherDaoImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl {
    @Autowired
    private TeacherDaoImpl teacherDao;

   /* public TeacherDaoImpl getTeacherDao() {
        return teacherDao;
    }

    public void setTeacherDao(TeacherDaoImpl teacherDao) {
        this.teacherDao = teacherDao;
    }*/

    public void register(String username, String password) {
        teacherDao.register(username,password);
    }
}
